home *** CD-ROM | disk | FTP | other *** search
- /*
- * a header of the class STAGE_MOVE_LINE_CORE
- * Copyright (C) 1996, 1997 Kazutaka Hirata <khirata@jove.acs.unt.edu>
- */
-
- #ifndef _STMVLINE_H_
- #define _STMVLINE_H_
-
- #include "cmnmcur.h"
- #include "../kbanfunc.h"
-
- class STAGE_MOVE_LINE_CORE : public STAGE {
- protected:
- LINE_ELEMENT* m_target;
- uint m_old_active_layer;
- FLAG m_done;
- EDIT_MOVE_LINE_MOUSE_CURSOR m_mcur;
- XY m_ac_base;
- private:
- FLAG m_moved;
- XY m_pc_old;
-
- void erase_selected_line (KBAN_DRAW& draw);
- void redraw_selected_line(KBAN_DRAW& draw);
- protected:
- FLAG& moved(void) { return m_moved; }
- XY& pc_old(void) { return m_pc_old; }
- public:
- STAGE_MOVE_LINE_CORE(LINE_ELEMENT* target, uint layer, const XY& ac_base);
- STAGE_MOVE_LINE_CORE(LINE_ELEMENT* target, uint layer, const XY& ac_base, const XY& pc_old);
- virtual STAGE* init (KBAN_INFO& info, KBAN_DRAW& draw);
- virtual STAGE* redraw (KBAN_INFO& info, KBAN_DRAW& draw);
- virtual STAGE* mouse_move (KBAN_INFO& info, KBAN_DRAW& draw, const XY& pc, UINT nFlags);
- virtual STAGE* mouse_left_up (KBAN_INFO& info, KBAN_DRAW& draw, const XY& pc, UINT nFlags);
- virtual STAGE* mouse_right_up(KBAN_INFO& info, KBAN_DRAW& draw, const XY& pc, UINT nFlags);
- virtual void end (KBAN_INFO& info, KBAN_DRAW& draw);
- };
-
- #endif /* _STMVLINE_H_ */
-